using System;
using System.Collections.Generic;
using System.Text;

namespace THSLib
{
    #region STTHSDataSetRelationsInfo
    /// <summary>
    /// This object represents the properties and methods of a STTHSDataSetRelationw.
    /// </summary>
    public class STTHSDataSetRelationsInfo : BusinessObject
    {

        protected int _sTTHSDataSetRelationID;
        protected string _sTTHSDataSetRelationName = String.Empty;
        protected int _sTTHSDataSetID;
        protected string _sTTHSDataSetRelationPrimaryTable = DefaultString;
        protected string _sTTHSDataSetRelationPrimaryColumn = DefaultString;
        protected string _sTTHSDataSetRelationForeignTable = DefaultString;
        protected string _sTTHSDataSetRelationForeignColumn = DefaultString;

        public STTHSDataSetRelationsInfo()
        {
        }

        public STTHSDataSetRelationsInfo(string strSTTHSDataSetRelationName, int iSTTHSDataSetID, string strSTTHSDataSetRelationPrimaryTable, string strSTTHSDataSetRelationPrimaryColumn, string strSTTHSDataSetRelationForeignTable, string strSTTHSDataSetRelationForeignColumn)
        {
            STTHSDataSetRelationName = strSTTHSDataSetRelationName;
            STTHSDataSetID = iSTTHSDataSetID;
            STTHSDataSetRelationPrimaryTable = strSTTHSDataSetRelationPrimaryTable;
            STTHSDataSetRelationPrimaryColumn = strSTTHSDataSetRelationPrimaryColumn;
            STTHSDataSetRelationForeignTable = strSTTHSDataSetRelationForeignTable;
            STTHSDataSetRelationForeignColumn = strSTTHSDataSetRelationForeignColumn;
        }

        #region Public Properties
        public int STTHSDataSetRelationID
        {
            get { return _sTTHSDataSetRelationID; }
            set
            {
                if (value != this._sTTHSDataSetRelationID)
                {
                    _sTTHSDataSetRelationID = value;
                    NotifyChanged("STTHSDataSetRelationID");
                }
            }
        }

        public string STTHSDataSetRelationName
        {
            get { return _sTTHSDataSetRelationName; }
            set
            {
                if (value != this._sTTHSDataSetRelationName)
                {
                    _sTTHSDataSetRelationName = value;
                    NotifyChanged("STTHSDataSetRelationName");
                }
            }
        }

        public int STTHSDataSetID
        {
            get { return _sTTHSDataSetID; }
            set
            {
                if (value != this._sTTHSDataSetID)
                {
                    _sTTHSDataSetID = value;
                    NotifyChanged("STTHSDataSetID");
                }
            }
        }

        public string STTHSDataSetRelationPrimaryTable
        {
            get { return _sTTHSDataSetRelationPrimaryTable; }
            set
            {
                if (value != this._sTTHSDataSetRelationPrimaryTable)
                {
                    _sTTHSDataSetRelationPrimaryTable = value;
                    NotifyChanged("STTHSDataSetRelationPrimaryTable");
                }
            }
        }

        public string STTHSDataSetRelationPrimaryColumn
        {
            get { return _sTTHSDataSetRelationPrimaryColumn; }
            set
            {
                if (value != this._sTTHSDataSetRelationPrimaryColumn)
                {
                    _sTTHSDataSetRelationPrimaryColumn = value;
                    NotifyChanged("STTHSDataSetRelationPrimaryColumn");
                }
            }
        }

        public string STTHSDataSetRelationForeignTable
        {
            get { return _sTTHSDataSetRelationForeignTable; }
            set
            {
                if (value != this._sTTHSDataSetRelationForeignTable)
                {
                    _sTTHSDataSetRelationForeignTable = value;
                    NotifyChanged("STTHSDataSetRelationForeignTable");
                }
            }
        }

        public string STTHSDataSetRelationForeignColumn
        {
            get { return _sTTHSDataSetRelationForeignColumn; }
            set
            {
                if (value != this._sTTHSDataSetRelationForeignColumn)
                {
                    _sTTHSDataSetRelationForeignColumn = value;
                    NotifyChanged("STTHSDataSetRelationForeignColumn");
                }
            }
        }
        #endregion
    }
    #endregion
}
